import request from '@/utils/request'

// 获取商品搜索
export function getShopSearch(params) {
    return request({
        url: '/goods/list',
        method: 'GET',
        params
    })
}


// 获取商品详情
export function getProDetail(params) {
    return request({
        url: '/goods/detail',
        method: 'GET',
        params
    })
}
 
// 获取商品评价
export const getProComments = (goodsId, limit) => {
    return request.get('/comment/listRows', {
        params: {
            goodsId,
            limit
        }
    })
}